<?php
/**
 * config route for web application
 * @var $app \micro\web\App
 */

use inhere\sroute\SRoute;

SRoute::get('test',function(){
    echo 'hello, this is a test.';
});

SRoute::get('/', app\http\controllers\Home::class . '@index');
SRoute::any('/home(/[\w-]+)?', \app\http\controllers\Home::class);

SRoute::on(SRoute::FOUND, function ($uri, $cb) use ($app) {
    $app->logger->debug("Matched uri path: $uri, setting callback is: " . (string)$cb);
});
